Skip to content

Remove IOException from LeafReader#getSumDocFreq and LeafReader#getSumTotalTermFreq signatures - #16060

Merged
iverase merged 4 commits into
apache:mainfrom
iverase:LeafReaderLast
Jul 30, 2026
Merged

Remove IOException from LeafReader#getSumDocFreq and LeafReader#getSumTotalTermFreq signatures#16060
iverase merged 4 commits into
apache:mainfrom
iverase:LeafReaderLast

Conversation

@iverase

@iverase iverase commented May 13, 2026

Copy link
Copy Markdown
Contributor

These are the last ones of this saga. This time the SimpleText codec was again behaving wrong but already had a todo.

relates #16052

@iverase iverase added this to the 11.0.0 milestone May 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the dev@lucene.apache.org list. Thank you for your contribution!

@github-actions github-actions Bot added the Stale label May 28, 2026
try {
// TODO: make it constant-time by pre-computing during indexing
long ttf = 0;
TermsEnum iterator = iterator();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: the above two need not to be in try?

}
return ttf;
} catch (IOException e) {
throw new UncheckedIOException(e);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Do we need to add this in changes.txt?

@github-actions github-actions Bot removed the Stale label Jun 3, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the dev@lucene.apache.org list. Thank you for your contribution!

@github-actions github-actions Bot added the Stale label Jun 18, 2026
@iverase
iverase requested a review from romseygeek July 14, 2026 08:58

@romseygeek romseygeek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I think we can backport to 10.6 as well

@github-actions github-actions Bot removed the Stale label Jul 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the dev@lucene.apache.org list. Thank you for your contribution!

@github-actions github-actions Bot added the Stale label Jul 29, 2026
@iverase
iverase merged commit dce04ad into apache:main Jul 30, 2026
12 checks passed
@iverase
iverase deleted the LeafReaderLast branch July 30, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants